package com.efast.dmom.mgmt.entity.master;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author cong.xu
 * @since 2018-09-19
 */
@TableName("tr_bas_bom_item")
public class TrBasBomItem implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "tr_bas_bom_item_id", type = IdType.AUTO)
    private Integer trBasBomItemId;
    /**
     * bom item名称
     */
    @TableField("bom_item_name")
    private String bomItemName;
    /**
     * bom id
     */
    @TableField("bom_id")
    private Integer bomId;
    @TableField("bom_name")
    private String bomName;
    /**
     * 零件本地标识码
     */
    @TableField("tm_bas_part_id")
    private Integer tmBasPartId;
    @TableField("part_no_version")
    private String partNoVersion;
    /**
     * bom item数量
     */
    private Integer quantity;
    /**
     * 零件消耗时零件序号的验证方式，1:关键件；2：批次建；3：普通件
     */
    @TableField("sn_verify_type")
    private Integer snVerifyType;
    /**
     * 单位(个，公斤，升)
     */
    private String uom;
    /**
     * 替代料
     */
    @TableField("alternated_part_no_version")
    private String alternatedPartNoVersion;
    /**
     * 描述
     */
    private String comments;
    /**
     * 是否激活
     */
    @TableField("mark_status")
    private Integer markStatus;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 创建用户
     */
    @TableField("create_user")
    private String createUser;
    /**
     * 上次更新时间
     */
    @TableField("last_update_time")
    private Date lastUpdateTime;
    /**
     * 更改用户
     */
    @TableField("last_update_user")
    private String lastUpdateUser;
    /**
     * 版本控制
     */
    @TableField("opt_counter")
    private Integer optCounter;
    /**
     * 企业代码
     */
    @TableField("company_code")
    private String companyCode;


    public Integer getTrBasBomItemId() {
        return trBasBomItemId;
    }

    public void setTrBasBomItemId(Integer trBasBomItemId) {
        this.trBasBomItemId = trBasBomItemId;
    }

    public String getBomItemName() {
        return bomItemName;
    }

    public void setBomItemName(String bomItemName) {
        this.bomItemName = bomItemName;
    }

    public Integer getBomId() {
        return bomId;
    }

    public void setBomId(Integer bomId) {
        this.bomId = bomId;
    }

    public String getBomName() {
        return bomName;
    }

    public void setBomName(String bomName) {
        this.bomName = bomName;
    }

    public Integer getTmBasPartId() {
        return tmBasPartId;
    }

    public void setTmBasPartId(Integer tmBasPartId) {
        this.tmBasPartId = tmBasPartId;
    }

    public String getPartNoVersion() {
        return partNoVersion;
    }

    public void setPartNoVersion(String partNoVersion) {
        this.partNoVersion = partNoVersion;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Integer getSnVerifyType() {
        return snVerifyType;
    }

    public void setSnVerifyType(Integer snVerifyType) {
        this.snVerifyType = snVerifyType;
    }

    public String getUom() {
        return uom;
    }

    public void setUom(String uom) {
        this.uom = uom;
    }

    public String getAlternatedPartNoVersion() {
        return alternatedPartNoVersion;
    }

    public void setAlternatedPartNoVersion(String alternatedPartNoVersion) {
        this.alternatedPartNoVersion = alternatedPartNoVersion;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public Integer getMarkStatus() {
        return markStatus;
    }

    public void setMarkStatus(Integer markStatus) {
        this.markStatus = markStatus;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getLastUpdateUser() {
        return lastUpdateUser;
    }

    public void setLastUpdateUser(String lastUpdateUser) {
        this.lastUpdateUser = lastUpdateUser;
    }

    public Integer getOptCounter() {
        return optCounter;
    }

    public void setOptCounter(Integer optCounter) {
        this.optCounter = optCounter;
    }

    public String getCompanyCode() {
        return companyCode;
    }

    public void setCompanyCode(String companyCode) {
        this.companyCode = companyCode;
    }

    @Override
    public String toString() {
        return "TrBasBomItem{" +
        ", trBasBomItemId=" + trBasBomItemId +
        ", bomItemName=" + bomItemName +
        ", bomId=" + bomId +
        ", bomName=" + bomName +
        ", tmBasPartId=" + tmBasPartId +
        ", partNoVersion=" + partNoVersion +
        ", quantity=" + quantity +
        ", snVerifyType=" + snVerifyType +
        ", uom=" + uom +
        ", alternatedPartNoVersion=" + alternatedPartNoVersion +
        ", comments=" + comments +
        ", markStatus=" + markStatus +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", lastUpdateTime=" + lastUpdateTime +
        ", lastUpdateUser=" + lastUpdateUser +
        ", optCounter=" + optCounter +
        ", companyCode=" + companyCode +
        "}";
    }
}
